// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"

#include "Blueprint/IUserObjectListEntry.h"
#include "Components/TextBlock.h"
#include "Components/Tileview.h"
#include "Components/Border.h"
#include "Components/Image.h"

#include "Study/GamePlay/TributeSubsystem.h"
#include "Item/TributeGridItem.h"

#include "TributeGrid.generated.h"

/**
 * 
 */
UCLASS()
class STUDY_API UTributeGrid : public UUserWidget, public IUserObjectListEntry
{
	GENERATED_BODY()
	
public:

	virtual void NativeOnListItemObjectSet(UObject* ListItemObject) override;

	virtual void NativeOnItemSelectionChanged(bool bIsSelected) override;

private:

	UPROPERTY(EditInstanceOnly)
	UTributeSubsystem* TributeSubsystem;

	UPROPERTY(meta = (BindWidget))
	UTextBlock* Title;

	UPROPERTY(meta = (BindWidget))
	UBorder* BackGround;

	UPROPERTY(meta = (BindWidget))
	UImage* Image;

	ETributeType Type;
};
